









package com.company.z7.jiegouleiPK.decorator_vs_adapter.src.com.company.decorator;

/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 */
public class Client {
	
	public static void main(String[] args) {
		
		System.out.println("===�ܾúܾ���ǰ��������һֻ��ª��СѼ��===");
		Swan duckling = new UglyDuckling();
		
		duckling.desAppaearance();  
		duckling.cry();  
		duckling.fly();  
		
		System.out.println("\n===СѼ�����ڷ����Լ���һֻ���====");
		
		duckling = new BeautifyAppearance(duckling);
		
		duckling = new StrongBehavior(duckling); 
		
		duckling.desAppaearance();  
		duckling.cry();  
		duckling.fly();  
	}
}